﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Teamwish.Domain.Models
{
    public class UserCourse
    {
        [DisplayName("主键")]
        public int Id { get; set; }
        [DisplayName("用户id")]
        [ForeignKey("Userinfo")]
        public int? UserinfoId { get; set; }
        [DisplayName("课程id")]
        [ForeignKey("Course")]
        public int? CourseId { get; set; }
        [DisplayName("分数")]
        public float? Score { get; set; }

        //导航属性
        public  Userinfo Userinfo{get;set;}
        public  Course Course { get; set; }

        
    }
}
